package com.ruoyi.teacher.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.teacher.mapper.DailypaperAnomalyMapper;
import com.ruoyi.teacher.domain.DailypaperAnomaly;
import com.ruoyi.teacher.service.IDailypaperAnomalyService;

/**
 * 日报异常Service业务层处理
 * 
 * @author zhangt
 * @date 2023-04-16
 */
@Service
public class DailypaperAnomalyServiceImpl implements IDailypaperAnomalyService 
{
    @Autowired
    private DailypaperAnomalyMapper dailypaperAnomalyMapper;

    /**
     * 查询日报异常
     * 
     * @param id 日报异常主键
     * @return 日报异常
     */
    @Override
    public DailypaperAnomaly selectDailypaperAnomalyById(Long id)
    {
        return dailypaperAnomalyMapper.selectDailypaperAnomalyById(id);
    }

    /**
     * 查询日报异常列表
     * 
     * @param dailypaperAnomaly 日报异常
     * @return 日报异常
     */
    @Override
    public List<DailypaperAnomaly> selectDailypaperAnomalyList(DailypaperAnomaly dailypaperAnomaly)
    {
        return dailypaperAnomalyMapper.selectDailypaperAnomalyList(dailypaperAnomaly);
    }

    /**
     * 新增日报异常
     * 
     * @param dailypaperAnomaly 日报异常
     * @return 结果
     */
    @Override
    public int insertDailypaperAnomaly(DailypaperAnomaly dailypaperAnomaly)
    {
        return dailypaperAnomalyMapper.insertDailypaperAnomaly(dailypaperAnomaly);
    }

    /**
     * 修改日报异常
     * 
     * @param dailypaperAnomaly 日报异常
     * @return 结果
     */
    @Override
    public int updateDailypaperAnomaly(DailypaperAnomaly dailypaperAnomaly)
    {
        return dailypaperAnomalyMapper.updateDailypaperAnomaly(dailypaperAnomaly);
    }

    /**
     * 批量删除日报异常
     * 
     * @param ids 需要删除的日报异常主键
     * @return 结果
     */
    @Override
    public int deleteDailypaperAnomalyByIds(Long[] ids)
    {
        return dailypaperAnomalyMapper.deleteDailypaperAnomalyByIds(ids);
    }

    /**
     * 删除日报异常信息
     * 
     * @param id 日报异常主键
     * @return 结果
     */
    @Override
    public int deleteDailypaperAnomalyById(Long id)
    {
        return dailypaperAnomalyMapper.deleteDailypaperAnomalyById(id);
    }
}
